package ru.vpitervip.app.client.util;

import java.util.HashSet;
import java.util.List;

import ru.vpitervip.client.managed.request.FlatProxy;

import com.google.gwt.maps.client.MapWidget;
import com.google.gwt.maps.client.base.HasInfoWindowOptions;
import com.google.gwt.maps.client.base.HasLatLng;
import com.google.gwt.maps.client.base.InfoWindow;
import com.google.gwt.maps.client.base.InfoWindowOptions;
import com.google.gwt.maps.client.base.LatLng;
import com.google.gwt.maps.client.event.Event;
import com.google.gwt.maps.client.event.EventCallback;
import com.google.gwt.maps.client.geocoder.Geocoder;
import com.google.gwt.maps.client.geocoder.GeocoderRequest;
import com.google.gwt.maps.client.geocoder.HasGeocoder;
import com.google.gwt.maps.client.geocoder.HasGeocoderRequest;
import com.google.gwt.maps.client.geocoder.HasGeocoderResult;
import com.google.gwt.maps.client.overlay.HasMarker;
import com.google.gwt.maps.client.overlay.Marker;
import com.google.gwt.maps.client.overlay.impl.MarkerImpl;
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
import com.google.gwt.user.client.Window;

public class MapUtil {
	
	
	
	
	
	
	
	public static void clearMapMapkers(HashSet<HasMarker> mapMarkers){
		if (mapMarkers!=null&&mapMarkers.size()>0){
			for (HasMarker mapMarker:mapMarkers){
				MarkerImpl.impl.setMap(mapMarker.getJso(), null);
			}
			mapMarkers.clear();
		}
	}

}
